//
// Created by 28365 on 2025/3/10.
//

#ifndef ODUPDATERSDK_THREADFACTORY_H
#define ODUPDATERSDK_THREADFACTORY_H

#include <thread>
#include <functional>

using namespace std;

class ThreadFactory {

public:
    //使用new创建对象，需要手动delete
    virtual thread *newThread(const function<void()> &runnable) = 0;

    virtual ~ThreadFactory() = default;
};


#endif //ODUPDATERSDK_THREADFACTORY_H
